package com.boarsoft.message.test.other;

import com.boarsoft.common.util.JsonUtil;
import com.boarsoft.message.bean.Message;
import com.boarsoft.message.core.MessageService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

@Component("queueTxConsumer1")
public class QueueTxConsumer1 implements MessageService {

	private static final Logger log = LoggerFactory.getLogger(QueueTxConsumer1.class);

	@Override
	@Transactional
	public void put(Message msg) {
		log.info(JsonUtil.from(msg));
	}
}
